//
//  YLIconTitleModel.m
//  YLFinanceService
//
//  Created by she1323 on 2017/8/31.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLIconTitleModel.h"
#import "YLGlobeHeader.h"
@implementation YLIconTitleModel

+ (instancetype)modelWithIcon:(NSString *)icon title:(NSString *)title clickBlock:(NSString *(^)(void))block
{
    YLIconTitleModel *model = [[self alloc] init];
    model.icon = icon;
    model.title = title;
    model.clickBlock = block;
    return model;
}

@end


@implementation YLIconTitleNoArrowModel
+ (instancetype)modelWithIcon:(NSString *)icon title:(NSString *)title content:(NSString *)content
{
    YLIconTitleNoArrowModel *model = [[self alloc] init];
    model.icon = icon;
    model.title = title;
    model.content = content;
    model.contentColor = YLLineColor;
    return model;
}
@end

@implementation YLIconTitleNumberModel

+ (instancetype)modelWithIcon:(NSString *)icon title:(NSString *)title number:(NSInteger)number clickBlock:(NSString *(^)(void))block
{
    YLIconTitleNumberModel *model = [YLIconTitleNumberModel modelWithIcon:icon title:title clickBlock:block];
    model.number = number;
    return model;
    
}
@end

@implementation YLIconTitleContentModel

+ (instancetype)modelWithIcon:(NSString *)icon title:(NSString *)title content:(NSString *)content clickBlock:(NSString *(^)(void))block
{
    YLIconTitleContentModel *model = [YLIconTitleContentModel modelWithIcon:icon title:title clickBlock:block];
    model.content = content;
    model.contentColor = YLLOrgColor;
  
    return model;
}

@end

@implementation YLIconTitleSpotModel

+ (instancetype)modelWithIcon:(NSString *)icon title:(NSString *)title haveNews:(BOOL)haveNews clickBlock:(NSString *(^)(void))block
{
    YLIconTitleSpotModel *model = [YLIconTitleSpotModel modelWithIcon:icon title:title clickBlock:block];
    model.haveNews = haveNews;
    return model;
}

@end

